package com.dj.shop.mapper;

import com.dj.shop.model.ShoppingCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ShoppingCartMapper {
    int deleteByPrimaryKey(Integer cartGoodsId);

    int insert(ShoppingCart record);

    int insertSelective(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer cartGoodsId);

    int updateByPrimaryKeySelective(ShoppingCart record);

    int updateByPrimaryKey(ShoppingCart record);

    ShoppingCart selectByPars(@Param("userId") Integer userId, @Param("shopId") Integer shopId, @Param("shopGoodsId") Integer shopGoodsId);

    List<ShoppingCart> queryAllGoods(Map<String,Object> parMap);

    int clearAllGoods(Map<String,Object> parMap);
}